package com.hexiaohe.springboot_vue_app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hexiaohe.springboot_vue_app.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface UserMapper extends BaseMapper<User> {
     Page<User> findPage(Page<User> page, @Param("nickName") String nickName);
     int updatePerson(User user);
     @Update("update  user set password = #{xpassword} where username = #{username}")
     int updatePassword(String username,String xpassword);
}

